/*
 * @Author: wang_changtan 2196064304@qq.com
 * @Date: 2024-02-20 10:53:24
 * @LastEditors: wang_changtan 2196064304@qq.com
 * @LastEditTime: 2024-02-21 00:10:52
 * @FilePath: /web_music_app_vue3_vite_ts/src/assets/style/theme.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

// 改变主题的方法
export const setTheme = (themeName: string) => {
  switch (themeName) {
    case 'default':
      document.documentElement.className = 'theme-default'
      break
    case 'red':
      document.documentElement.className = 'theme-red'
      break
    case 'dark':
      document.documentElement.className = 'theme-dark'
      break
  }
}
